<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>文档管理</title>
<link rel="stylesheet" type="text/css" href="/dadaocms/Public/css/base.css">
<script language="javascript" type="text/javascript" src="/dadaocms/Public/js/jquery-1.8.0.min.js"></script>
<script language="javascript" src="/dadaocms/Public/js/base.js"></script>
<script>
$(function(){
	
	/*
	* 点击展开子类
	*
	*/
	$(".jia").click(function(){
		if($(this).parent("td").parent("tr").next(".seed").is(":hidden")){
			$(this).parent("td").parent("tr").next(".seed").show();
			$(this).html("-");
		}else{
			$(this).parent("td").parent("tr").next(".seed").hide();
			$(this).html("+");	
		}
		
	});
	
	$(".seed").prev(".fid").find("td").find("span.jia").html("-");
	
	/*
	* 点击关闭所有子类
	*
	*/
	$("#closeseed").click(function(){
		if($(this).val() == "展开所有子类"){
			$(".seed").show();
			$(this).val("关闭所有子类");
			$.each($(".jia"),function(k,v){
				if($(this).html()){
					$(this).html("-");
				}
			});						
		}else{
			$(".seed").hide();
			$(this).val("展开所有子类");
			$.each($(".jia"),function(k,v){
				if($(this).html()){
					$(this).html("+");
				}
			});		
		}		
	});
	
});
</script>
</head>
<body leftmargin="8" topmargin="8" background='/kefu/public/images/allbg.gif'>

<!--  快速转换位置按钮  -->
<table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA" align="center">
  <tr>
    <td width="37%" height="26" background="/kefu/public/images/newlinebg3.gif">&nbsp; <IMG height=14 src="/dadaocms/Public/images/frame/book1.gif" width=20>&nbsp;<u>文章栏目管理</u></td>
    <td width="63%" height="26" background="/kefu/public/images/newlinebg3.gif"><input type='button' class="coolbg np"  onClick="winopen('{:U('Admin/Arctype/add')}','add',1000,650)" value='增加栏目' /></td>
    <td width="9%" height="26" background="/kefu/public/images/newlinebg3.gif"><input type='button' class="coolbg np" id="closeseed" value='关闭所有子类' /></td>
  </tr>
</table>

<!--  内容列表   -->
<form name="form2">
  <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
    <tr bgcolor="#E7E7E7">
      <td height="24" colspan="10" background="/kefu/public/images/tbg.gif">&nbsp;栏目列表</td>
    </tr>
    <tr align="center" bgcolor="#FAFAF1" height="22">
      <td width="7%">ID</td>
      <td width="14%">栏目名称</td>
      <td>排序</td>
      <td>操作</td>
    </tr>
    <volist name="list" id="vo">
      <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22" >
        <td>{$vo.id}</td>
        <td align="center"><u><a href="{:U('Admin/Zixun/index',array('typeid'=>$vo['id']))}">{$vo.typename}</a></u></td>
        <td></td>
        <td><span class="coolbg" onClick="winopen('__URL__/edit/id/{$vo.id}','edit',1000,650)">编辑</span>&nbsp;&nbsp;<a href="{:U('Admin/Zixuntype/del',array('id'=>$vo['id']))}" onClick="return confirm('确定删除此栏目吗');" class="coolbg">删除</a></td>
      </tr>
    </volist>
    <php> if($zixuntype){ $_tree = new Zixuntype();$_tree->tree($zixuntype);} </php>
    <tr bgcolor="#FAFAF1">
      <td height="28" colspan="10">&nbsp;</td>
    </tr>
    <tr align="right" bgcolor="#EEF4EA">
      <td height="36" colspan="10" align="center"><!--翻页代码 -->{$fpage}</td>
    </tr>
  </table>
</form>
</body>
</html>